//抢修队接口
import request from '@/utils/request';
import { IEmergencyRepairVo, IEmergencyType, IQueryParams } from '@/api/rescueForces/types';
import { AxiosPromise } from 'axios';

//获取总的抢修队数据
export function getEmergencyRepair(query?: IQueryParams): AxiosPromise<IEmergencyRepairVo[]> {
  return request({
    url: `/largescreen/api/largeScree/getEmergencyRepair`,
    method: 'get',
    params: query
  });
}

//根据类型获取抢修队数据
export function getEmergencyRepairByType(query: IEmergencyType): AxiosPromise<IEmergencyRepairVo[]> {
  return request({
    url: `/largescreen/api/largeScree/getEmergencyRepairByType`,
    method: 'get',
    params: query
  });
}
